home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 51 / Amiga Format CD51 (2000-03-10)(Future Publishing)(GB)[!][issue 2000-04].iso / -in_the_mag- / banging_the_metal / qdos / qdos4amiga3.lha / SYS_REF_readme < prev    next >
Text File  |  1998-02-24  |  2KB  |  73 lines

  1. Short:    patch your progs to run when sys vars are relocated
  2. Author:   Mark J Swift
  3. Version:  1.10
  4. Uploader: msw@blackpool.ac.uk
  5.  
  6.  
  7. A lot of QL programs won't run when the system variables are
  8. not located in the usual place ($28000 hex - 163840 decimal).
  9. This can happen in Minerva with the second screen enabled or
  10. in Amiga-QDOS running QDOS from extended memory.
  11.  
  12. This program takes a QL exectable, scans for $28XXX and
  13. patches it apropriately.
  14.  
  15.  
  16. ARCHIVE CONTENTS
  17.  
  18. SYS_REF_readme - this file
  19. SYS_REF_bas    - BASIC source
  20. SYS_REF_task   - TURBO compiled code
  21.  
  22.  
  23. PROGRAM FEATURES
  24.  
  25. * patches programs to run when sys vars are relocated
  26. * makes all TURBO'ed & some QLIB'ed programs 32-bit clean
  27. * CACHE friendly - patcher code will work on 68030, '40 and '60
  28.   processors - will even work with COPYBACK enabled
  29. * TURBO COMPILED for speed
  30. * BASIC source is provided
  31. * FREEWARE
  32.  
  33.  
  34. PATCHING TURBO
  35.  
  36. If patching CODEGEN_task of the TURBO compiler, patch ALL
  37. references EXCEPT the two that refer to $28010. These are not
  38. part of the CODEGEN code, but ARE included in all TURBO
  39. compiled programs. Patched versions of TURBO produce code
  40. identical to unpatched versions, i.e. newly compiled tasks still
  41. require patching.  If patching PARSER_task, or any other TURBO
  42. program replace ALL references.
  43.  
  44.  
  45. 32 BIT FRIENDLY
  46.  
  47. SYS_REF makes all TURBO'ed programs 32-bit clean. This means you
  48. can run them high in memory. This is especially useful in
  49. Amiga-QDOS, where if you have 16 meg of memory, the memory map
  50. could be from $07000000 - $08000000 with the system variables
  51. relocated to $07000000.
  52.  
  53.  
  54. CACHE FRIENDLY
  55.  
  56. On a QL with a big processor (68030/'040/'060) the caches are
  57. flushed/disabled/enabled at the appropriate time.
  58.  
  59.  
  60. REQUIRES
  61.  
  62. Requires the D68K toolkit and some TK2 commands. If you don't have TK2
  63. use PDTK instead which is FREEWARE.
  64.  
  65.  
  66. CONTACT
  67.  
  68.   post: MARK J SWIFT          e-mail: msw@blackpool.ac.uk
  69.         175 CHURCH STREET
  70.         BLACKPOOL
  71.         LANCS
  72.         FY1 3NX
  73.